﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PaynetApi;
using PaynetApi.Requests;
namespace Samba.Modules.CreditCardModule.ExternalProcessor
{
    class PaynetAdapter : ICardGateway
    {
        private static PaynetGateway _paynet;
        public PaynetAdapter(string merchId, string transKey)
        {
            _paynet = new PaynetGateway(merchId, transKey);
        }

        public Response SwipePreAuth(string Amount, string MagData)
        {
            return (_paynet.SwipePreAuth(Amount, MagData));
        }
        public Response SwipeForce(string Amount, string MagData, string ApprovalNumber)
        {
            return (_paynet.SwipeForce (Amount, MagData, ApprovalNumber));
        }
        public Response ManualPreAuth(string Amount, string CCNumber, string ExpiryYear, string ExpiryMonth, string Ccy)
        {
            return (_paynet.ManualPreAuth(Amount, CCNumber, ExpiryYear, ExpiryMonth, Ccy));
        }
        public Response ManualForce(string Amount, string CCNumber, string ExpiryYear, string ExpiryMonth, string Ccy, string ApprovalNumber)
        {
            return (_paynet.ManualForce(Amount, CCNumber, ExpiryYear, ExpiryMonth, Ccy, ApprovalNumber));
        }

    }
}
